package com.test;

public class Animal {
    private String name = "12213A";
    private String age;
    int y = 2;
    public void eat(){
        System.out.println("动物吃东西");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
}
